package com.abel.quiz.services.impl;

import com.abel.quiz.dao.AuthRolePoDao;
import com.abel.quiz.dao.BaseDao;
import com.abel.quiz.mapper.AuthRoleMapper;
import com.abel.quiz.po.AuthRolePo;
import com.abel.quiz.po.AuthRolePoCriteria;
import com.abel.quiz.services.AuthRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author abel.lin
* @date_time 2017-08-04 13:57
* @description
*/
@Service
public class AuthRoleServiceImpl
    extends BaseServiceImpl<BaseDao<AuthRolePo,AuthRolePoCriteria>,AuthRolePo,AuthRolePoCriteria>
    implements AuthRoleService {

    @Autowired
    private AuthRolePoDao authRolePoDao;
    @Autowired
    private AuthRoleMapper authRoleMapper;

    public AuthRoleServiceImpl(){
        super.baseMapper = authRolePoDao;
    }

    public List<AuthRolePo> selectByUserId(String userId){
        return authRoleMapper.selectByUserId(userId);
    }

}
